
package com.mk.webservice.itsm;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.FaultAction;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 3.1.18
 * 2021-04-23T17:14:24.569+08:00
 * Generated source version: 3.1.18
 * 
 */
public final class NewKGItsmServicePortType_NewKGItsmServiceHttpEndpoint_Client {

    private static final QName SERVICE_NAME = new QName("http://cqn.itsm.bd.dc.com", "NewKGItsmService");

    private NewKGItsmServicePortType_NewKGItsmServiceHttpEndpoint_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = NewKGItsmService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        NewKGItsmService ss = new NewKGItsmService(wsdlURL, SERVICE_NAME);
        NewKGItsmServicePortType port = ss.getNewKGItsmServiceHttpEndpoint();  
        
        {
        System.out.println("Invoking cqUpdate...");
        java.lang.String _cqUpdate_reqId = "";
        java.lang.Long _cqUpdate_cqStatus = null;
        try {
            java.lang.Long _cqUpdate__return = port.cqUpdate(_cqUpdate_reqId, _cqUpdate_cqStatus);
            System.out.println("cqUpdate.result=" + _cqUpdate__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }

        System.exit(0);
    }

}
